﻿using Microsoft.TeamFoundation.VersionControl.Client;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Collections.ObjectModel;

namespace TeamExplorer.Merge.MergeCandidates
{
    public class DesignMergeCandidatesPage : MergeCandidatesPage
    {
        public DesignMergeCandidatesPage() : base()
        {
            MergeCandidatesCollection = new ObservableCollection<MergeCandidateViewModel>();
            MergeCandidatesCollection.Add(GetMockMergeCandidateViewModel(1, DateTime.Now.AddDays(-2)));
            MergeCandidatesCollection.Add(GetMockMergeCandidateViewModel(2, DateTime.Now.AddDays(-8)));
            NoResultsAvailable = true;
            IsBusy = false;
        }

        private MergeCandidateViewModel GetMockMergeCandidateViewModel(int id, DateTime creationDate)
        {
            MergeCandidateViewModel vm = new MergeCandidateViewModel(id, false, "This is the comment for the merge candidate", creationDate);
            return vm;
        }
    }
}
